package com.findyou.service.impl;

import com.findyou.entity.Item;
import com.findyou.mapper.ItemMapper;
import com.findyou.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Title: ItemServiceImpl
 * @Author 贾金博
 * @Package com.findyou.service.impl
 * @Date 2024/12/19 下午5:14
 * @description: 实现类
 */
@Service
public class ItemServiceImpl implements ItemService {

    @Autowired
    private ItemMapper itemMapper;
    /**
     * 查询所有的商品
     * @return
     */
    @Override
    public List<Item> queryItemList() {
        return itemMapper.queryAllItem();
    }
}
